package com.stony.support;

import com.alibaba.fastjson.serializer.SerializeConfig;
import com.stony.support.serializer.ObjectIdSerializer;

/**
 * Created by ShiHui on 2014/7/3.
 */
public class MySerializeConfig extends SerializeConfig {
    private final static MySerializeConfig instance = new MySerializeConfig();
    public MySerializeConfig() {
        this(DEFAULT_TABLE_SIZE);
    }

    public MySerializeConfig(int tableSize) {
        super(tableSize);
        put(org.bson.types.ObjectId.class, ObjectIdSerializer.instance);
    }


    public final static MySerializeConfig getInstance() {
        return instance;
    }
}
